#ifndef ORDER_WIDGET_H
#define ORDER_WIDGET_H

#include <QCheckBox>
#include <QGridLayout>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QSpinBox>
#include <QWidget>

class Order_Widget : public QWidget
{
    Q_OBJECT
public:
    explicit Order_Widget(QWidget *parent = nullptr);
    ~Order_Widget();

private:
    void setupUi();
    void addProductInfo(QGridLayout *layout,
                        int &row,
                        const QString &imagePath,
                        const QString &name,
                        double price,
                        int quantity);
    double calculateTotalAmount();

    QGridLayout *mainLayout;
    QList<std::pair<double, int>> products;
};

#endif // ORDER_WIDGET_H
